﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
  <title translate="true">Integration with external loggers</title>
  <keywords>
    <keyword translate="true">External loggers</keyword>
    <keyword translate="true">Logging</keyword>
  </keywords>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Integration with external loggers</text></para>
    </header>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">The logging in Catel does not write any output by default. This gives a developer freedom to use any final logging mechanism in the way he or she intended. For example, Catel can easily be integrated with log4net or NLog. Basically, the following steps are required to implement an external log solution:</text></para>
    <list id="33" type="ol" listtype="decimal" formatstring="&#37;&#48;&#58;&#115;&#46;" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Arial; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Create a custom </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_Logging_ILogListener" styleclass="Normal (list)" translate="true">ILogListener</link><text styleclass="Normal (list)" translate="true"> by creating your own or using the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_Logging_LogListenerBase" styleclass="Normal (list)" translate="true">LogListenerBase</link><text styleclass="Normal (list)" translate="true"> implementation</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Register it in the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_Logging_LogManager" styleclass="Normal (list)" translate="true">LogManager</link><text styleclass="Normal (list)" translate="true"> using the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="M_Catel_Logging_LogManager_AddListener_1_a2099a56" styleclass="Normal (list)" translate="true">LogManager.AddListener</link></li>
    </list>
  </body>
</topic>
